﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataCrawler
{
    class Program
    {
        static void Main(string[] args)
        {
            // For testing purpose only

            CGetHotelCount getHotelCount = new CGetHotelCount();
            int count = 25;//getHotelCount.Count;
            string url = "http://www.hotelscombined.com/Place.aspx?languageCode=EN&currencyCode=VND&destination=place:Vietnam&radius=0km&Rooms=1&adults_1=1&pageSize=" + count + "&pageIndex=0&sort=Popularity-desc&showSoldOut=false&scroll=0&open=3,1,4,7,8,6,6,7&mapState=expanded=0"; 
                
            CGetHotelURLs getHotelURLs = new CGetHotelURLs(url);
            Console.WriteLine(getHotelURLs.ToString());
            if (getHotelURLs.Count > 0)
                for (int i = 0; i < getHotelURLs.Count; ++i)
                {
                    CGetHotelInformation getHotelInfo = new CGetHotelInformation(getHotelURLs[i]);
                    Console.WriteLine(getHotelInfo.ToString());
                    Console.WriteLine();
                    Console.ReadLine();
                }
            Console.ReadLine();
        }
    }
}
